//
//  InvestVC.m
//  ZZLC
//
//  Created by 杨春至 on 2017/12/14.
//  Copyright © 2017年 ZhongZeng. All rights reserved.
//

#import "InvestVC.h"
#import "InvestverifVC.h"
#import "InvestUnverifVC.h"

@interface InvestVC ()

@end

@implementation InvestVC

- (void)viewDidLoad {
    [super viewDidLoad];
//    _hasVerif_flag = YES;
    self.title = @"立即投资";
    [self configUI];
  
}
- (void)configUI{
    if(_hasVerif_flag){
        InvestverifVC *verVC = [[InvestverifVC alloc]init];
        verVC.model = _model;
        [self addChildViewController:verVC];
        [self.view addSubview:verVC.view];
        [verVC.view mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(self.view);
        }];
    }else{
        InvestUnverifVC *unVerVC = [[InvestUnverifVC alloc]init];
        unVerVC.model = _model;
        [self addChildViewController:unVerVC];
        [self.view addSubview:unVerVC.view];
        [unVerVC.view mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(self.view);
        }];

    }
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
}


@end
